<?xml version="1.0" encoding="UTF-8"?>
<definitions id="taskListenerExample" 
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
	targetNamespace="Examples">
	
	<process id="customTaskAssignment" name="Custom task assignment Example" isExecutable="true">
	
		<startEvent id="theStart" />
		
		<sequenceFlow id="flow1" sourceRef="theStart" targetRef="task1" />

		<userTask id="task1" name="Schedule meeting" camunda:assignee="fozzie">
		  <documentation>
		    Schedule a meeting with management.
		  </documentation>
		  <extensionElements>
		    <camunda:taskListener event="create" class="org.camunda.bpm.engine.test.bpmn.tasklistener.util.AssigneeOverwriteFromVariable" />
		  </extensionElements>
		</userTask>
		
		<sequenceFlow id="flow2" sourceRef="task1" targetRef="theEnd" />
		
		<endEvent id="theEnd" />
		
	</process>

</definitions>
